QT       += core gui
QT       += serialport
QT += network sql
QT += multimedia multimediawidgets
QT += printsupport
LIBS += -lws2_32

win32 {
    VLC_DIR = "D:/VLC/vlc-3.0.21"  # 根据截图路径设置

    # 包含头文件
    INCLUDEPATH += "$$VLC_DIR/sdk/include"

    # 链接库文件
    LIBS += -L"$$VLC_DIR/sdk/lib" \
            -lvlc \             # 主库
            -lvlccore \         # 核心库
            -llibvlc \          # Windows额外依赖
            -llibvlccore

    # 添加预处理器定义（可选）
    DEFINES += VLC_DYNAMIC_LINK  # 使用动态加载
}

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    PostItemWidget.cpp \
    aipredictionwidget.cpp \
    farmdiarywindow.cpp \
    form.cpp \
    handtopbtn.cpp \
    handwidget.cpp \
    main.cpp \
    mainwindow.cpp \
    monitorbtn.cpp \
    monitorwidget.cpp \
    monitostatew.cpp \
    navbtn.cpp \
    oasis.cpp \
    parameterbtn.cpp \
    paramterwidget.cpp \
    qcustomplot.cpp \
    tabel.cpp \
    vlcrtsp.cpp \
    weatherwidget.cpp

HEADERS += \
    aipredictionwidget.h \
    comm.h \
    farmdiarywindow.h \
    form.h \
    handtopbtn.h \
    handwidget.h \
    mainwindow.h \
    monitorbtn.h \
    monitorwidget.h \
    monitostatew.h \
    navbtn.h \
    oasis.h \
    parameterbtn.h \
    paramterwidget.h \
    postitemwidget.h \
    qcustomplot.h \
    tabel.h \
    vlcrtsp.h \
    weatherwidget.h

FORMS += \
    aipredictionwidget.ui \
    form.ui \
    handtopbtn.ui \
    handwidget.ui \
    mainwindow.ui \
    monitorbtn.ui \
    monitorwidget.ui \
    monitostatew.ui \
    navbtn.ui \
    oasis.ui \
    parameterbtn.ui \
    paramterwidget.ui \
    postitemwidget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    resource.qrc
